import { alovaIns } from './request'

//封装请求方法
export const getRequest = <T>(url: string, config?: any) => alovaIns.Get<T>(url, { ...config, localCache: 0 })
export const postRequest = <T>(url: string, params?: any) => alovaIns.Post<T, unknown>(url, params)
export const putRequest = <T>(url: string, params?: any) => alovaIns.Put<T, unknown>(url, params)
export const deleteRequest = <T>(url: string, params?: any) => alovaIns.Delete<T, unknown>(url, params)
